/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Entity.tta;

import java.io.Serializable;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.OneToMany;

/**
 *
 * @author Lu Xiaodi
 */
@Entity
public class StakeholderDataModel extends DataModel implements Serializable {

    private String stakeholderName;
    //the stored record following the following format: ":stakeholderName"+"Ad_YYYY_MM"
    @OneToMany(cascade = {CascadeType.PERSIST})
    private StrLongRecord strLongRecords;

    public String getStakeholderName() {
        return stakeholderName;
    }

    public void setStakeholderName(String stakeholderName) {
        this.stakeholderName = stakeholderName;
    }

    /**
     * @return the strLongRecords
     */
    public StrLongRecord getStrLongRecords() {
        return strLongRecords;
    }

    /**
     * @param strLongRecords the strLongRecords to set
     */
    public void setStrLongRecords(StrLongRecord strLongRecords) {
        this.strLongRecords = strLongRecords;
    }

    
}
